package com.qj.yantaishan.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qj.yantaishan.common.annotation.Excel;
import com.qj.yantaishan.common.core.domain.BaseEntity;

/**
 * 评论附件对象 shanglala_comment_attachment
 * 
 * @author qihe
 * @date 2022-07-22
 */
public class CommentAttachment
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 评论表ID */
    @Excel(name = "评论表ID")
    private Long cid;

    /** 会员ID */
    @Excel(name = "会员ID")
    private Long uid;

    /** 0为图片，1为语音，2为视频 */
    @Excel(name = "0为图片，1为语音，2为视频")
    private Integer type;

    /** 文件地址 */
    @Excel(name = "文件地址")
    private String file;

    /** 文件大小，byte字节数 */
    @Excel(name = "文件大小，byte字节数")
    private Long size;

    /** 图片宽度 */
    @Excel(name = "图片宽度")
    private Long width;

    /** 图片高度 */
    @Excel(name = "图片高度")
    private Long height;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCid(Long cid) 
    {
        this.cid = cid;
    }

    public Long getCid() 
    {
        return cid;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setFile(String file) 
    {
        this.file = file;
    }

    public String getFile() 
    {
        return file;
    }
    public void setSize(Long size) 
    {
        this.size = size;
    }

    public Long getSize() 
    {
        return size;
    }
    public void setWidth(Long width) 
    {
        this.width = width;
    }

    public Long getWidth() 
    {
        return width;
    }
    public void setHeight(Long height) 
    {
        this.height = height;
    }

    public Long getHeight() 
    {
        return height;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cid", getCid())
            .append("uid", getUid())
            .append("type", getType())
            .append("file", getFile())
            .append("size", getSize())
            .append("width", getWidth())
            .append("height", getHeight())
            .toString();
    }
}
